package com.aiyige.model.message.entity;


import com.alibaba.fastjson.JSONObject;

import java.util.List;

/**
 * Created by qianglong on 2018/1/22.
 */
public class Message {
    /**
     * 通知类型：system 系统通知，praise 点赞，favorite 收藏，comment 留言，order 订单
     */
    public static final String TYPE_SYSTEM = "system";
    public static final String TYPE_PRAISE = "praise";
    public static final String TYPE_FAVOURITE = "favorite";
    public static final String TYPE_COMMENT = "comment";
    public static final String TYPE_ORDER = "order";
    public static final String TYPE_INTERACT = "interact";

    private String id;

    /**
     * 通知类型：system 系统通知，praise 点赞，favorite 收藏，comment 留言，order 订单
     */
    private String type;

    /**
     * 通知标题
     */
    private String title;

    /**
     * 通知内容JSON
     */

    private JSONObject content;

    /**
     * 发送人id：0-系统，其他表示用户ID
     */
    private String senderId;

    /**
     * 接受人id
     */
    private String receiverId;

    /**
     * 创建时间，毫秒
     */
    private Long createTime;

    /**
     * 更新时间，毫秒
     */
    private Long updateTime;
    private List<String> operations;

    public List<String> getOperations() {
        return operations;
    }

    public void setOperations(List<String> operations) {
        this.operations = operations;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public JSONObject getContent() {
        return content;
    }

    public void setContent(JSONObject content) {
        this.content = content;
    }

    public String getSenderId() {
        return senderId;
    }

    public void setSenderId(String senderId) {
        this.senderId = senderId;
    }

    public String getReceiverId() {
        return receiverId;
    }

    public void setReceiverId(String receiverId) {
        this.receiverId = receiverId;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }
}
